package com.naiterui.ehp.bs.weixin.subscribe;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 问诊提醒-订阅通知
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/5/20 18:20
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
public class InquiryRemindSubscribe extends BaseSubscribe {

    private static final long serialVersionUID = 8917674125882159209L;
    /**
     * 问诊医生
     */
    private String inquiryDoctor;

    /**
     * 问诊内容
     */
    private String inquiryContent;

    /**
     * 提醒内容
     */
    private String reminderContent;

    /**
     * 提示说明
     */
    private String promptDesc;

    @Override
    public String getTemplateLabel() {
        return "INQUIRY_REMINDER";
    }

    @Override
    public void handleContent(List<SubscribeProperties.Content> contentList) {
        Map<String, String> formatMap = new HashMap<>(6);
        formatMap.put("INQUIRY_DOCTOR", getInquiryDoctor());
        formatMap.put("INQUIRY_CONTENT", getInquiryContent());
        formatMap.put("REMINDER_CONTENT", getReminderContent());
        formatMap.put("PROMPT_DESC", getPromptDesc());
        super.formatData(contentList, formatMap);
    }
}
